package com.defect.mapper;

import com.defect.bo.BaseInfoDealItem;
import com.defect.bo.BaseInfoListSearch;
import com.defect.bo.CommentBo;
import com.defect.bo.UserBaseInfoListSearch;
import com.defect.po.BaseInfo;
import com.defect.po.BaseInfoExample;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

public interface BaseInfoMapper {



    //查询缺陷列表
    List<BaseInfo> searchBaseInfoList(BaseInfoListSearch baseInfoListSearch);
    int delTaskArray(ArrayList<Integer> list);
    int delTask(int issueId);

    List<BaseInfo> getAllIssues();

    BaseInfo checkIssueName(String issueName);

    int addBaseInfo(BaseInfo baseInfo);
    int lastId();

    int changeBaseInfo(BaseInfo baseInfo);

    int allocate(Integer issueId, String username);

//    List<BaseInfo> getUserTask(@Param("user") UserBaseInfoListSearch userBaseInfoListSearch, @Param("assignee") String assignee);

    List<BaseInfo> getUserTask(@Param("list") List<Integer> issueIdList,@Param("user") UserBaseInfoListSearch userBaseInfoListSearch);

    int dealTask(BaseInfoDealItem baseInfoDealItem);

    BigDecimal getWorkHours(Integer issueId);

    List<BaseInfo> searchCommentBaseInfoList(UserBaseInfoListSearch userBaseInfoListSearch);

    int updatIssueState(CommentBo commentBo);
}